The TextField Component > Using the TextField component > TextField properties in the Property Inspector

 

TextField properties in the Property Inspector

You can set the following properties for the TextField component using the Property Inspector:

Property name

Value

Description

Type

Input or Dynamic

Specifies the type of text field to be created. Valid values are "Dynamic" and "Input".

Text

string

The initial text that will appear within the text field.

Font

font name

Specifies the font used to display the text in the text field.

Font Size

function name

Specifies the size of the font used to display text within the text field.

Text Color

color

Specifies the color of the font used to display the text within the text field.

Border

true or false

Specifies whether or not a border should be displayed around the text field.

Border Type

normal or bevel

Specifies the type of border to create. "normal" creates a 2D box around the text field. "bevel" creates a 3D beveled box around the text field.

Background

true or false

Specifies whether a background should be placed behind the text field.

Border Color

color

Specifies the color used to create the border around the text field.

Bevel Color

color

Specifies the color used to create the bevel around the text field.

Background Color

color

Specifies the color of the background behind the text field.

ScrollBar

none,
vertical,
horizontal,
both

Specifies the type of ScrollBar to be added to the text field. The valid values are "none", "vertical", "horizontal" and "both".

Multiline

true or false

Indicates whether the text field is a multiline text field.

Password

true or false

Indicates whether the text field is a password field. If true, user input will be masked by asterisks.

Word Wrap

true or false

Specifies whether the text in the text field should automatically wrap when it reaches the right margin.

Icon

ftf_errorIcon,
ftf_infoIcon,
ftf_questionIcon,
ftf_warningIcon

Specifies the linkage id of the symbol to be displayed in the text field.

Show Icon

true or false

Specifies whether an icon should be shown in the top left corner of the text field.

Enabled

true or false

Sets whether the component is enabled. If this value is false, the component will not accept any user interaction, and its visual state will be changed to indicate its state.